package com.csx.base.design.behavior.command;

/**
 * @author cuisongxu
 * @date 2022/10/12 11:34
 */
public class TVOffCommand implements Command{

    private TV tv;

    public TVOffCommand(TV tv) {
        this.tv = tv;
    }

    @Override
    public void exe() {
        tv.off();
    }

    @Override
    public void unexe() {
        tv.on();
    }
}
